package com.sakura.probe.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sakura.probe.common.util.PageCalculate;
import com.sakura.probe.mapper.FootPrintMapper;
import com.sakura.probe.pojo.FootPrint;
import com.sakura.probe.service.FootPrintService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FootPrintServiceImpl extends ServiceImpl<FootPrintMapper, FootPrint>
        implements FootPrintService {
    @Autowired
    private FootPrintMapper footPrintMapper;

    @Override
    public List<FootPrint> selectList(Long userId, int pageIndex, int pageSize) {
        int rowIndex = PageCalculate.calculateRowIndex(pageIndex,pageSize);
        return footPrintMapper.queryList(userId,rowIndex,pageSize);
    }
}
